
// 导入路由处理函数 
const { checkToken } = require('../middleware')

const { handleAdd, handleList, handlePrice } = require('../controller/good')
// 创建空表
const router = require('express').Router()


// 添加内容 
// 添加商品
router.post('/add', handleAdd)
//商品获取
router.get('/list', handleList)
//价格排序
router.get('/price', handlePrice)

module.exports = router